package com.zlp.mybatisplus.mybatisplus.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 给sku分配奖品
 * </p>
 *
 * @author zhulaiping
 * @since 2022-01-25
 */
@TableName("bcrm_award_sku")
public class AwardSku extends Model<AwardSku> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 奖品id
     */
    @TableField("award_prize_id")
    private String awardPrizeId;

    /**
     * sku的id
     */
    @TableField("sku_id")
    private String skuId;

    /**
     * sku名称
     */
    @TableField("sku_name")
    private String skuName;

    /**
     * 品牌名称
     */
    @TableField("brand_name")
    private String brandName;

    /**
     * 奖励数量
     */
    private Integer count;

    /**
     * 最大奖励数量
     */
    @TableField("max_count")
    private Integer maxCount;

    /**
     * 剩余数量
     */
    @TableField("residue_count")
    private Integer residueCount;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    private Date deletedAt;

    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getAwardPrizeId() {
        return awardPrizeId;
    }

    public void setAwardPrizeId(String awardPrizeId) {
        this.awardPrizeId = awardPrizeId;
    }
    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }
    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }
    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public Integer getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(Integer maxCount) {
        this.maxCount = maxCount;
    }
    public Integer getResidueCount() {
        return residueCount;
    }

    public void setResidueCount(Integer residueCount) {
        this.residueCount = residueCount;
    }
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AwardSku{" +
        "id=" + id +
        ", awardPrizeId=" + awardPrizeId +
        ", skuId=" + skuId +
        ", skuName=" + skuName +
        ", brandName=" + brandName +
        ", count=" + count +
        ", maxCount=" + maxCount +
        ", residueCount=" + residueCount +
        ", createdAt=" + createdAt +
        ", deletedAt=" + deletedAt +
        ", updatedAt=" + updatedAt +
        "}";
    }
}
